package com.example.dao;

import com.example.entity.Host;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface HostDao {
    List<Host> hostList();

    List<Host> hostListByUserId();

    boolean deleteHost(Integer family_id);

    List<Host> searchHosts(
            @Param("family_name") String family_name,
            @Param("minPrice") Double minPrice,
            @Param("maxPrice") Double maxPrice);


    int addHost(Host host);
    Host getHostById(@Param("hostId") Integer hostId);
}
